package com.luo.dao.impl;

import com.luo.dao.MainPicturesMappers;
import com.luo.model.GoodPictures;
import com.luo.util.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * 功能：
 * 作者：Luo。
 * 日期：2024/1/20 17:17
 */
public class MainPicturesDaoImpl implements MainPicturesMappers {

    @Override
    public List<GoodPictures> queryMainPictureByGoodId(String goodId) {
        SqlSession sqlSession = SqlSessionUtil.getSqlSession();
        MainPicturesMappers mapper = sqlSession.getMapper(MainPicturesMappers.class);
        List<GoodPictures> goodPictures = mapper.queryMainPictureByGoodId(goodId);
        sqlSession.close();
        return goodPictures;
    }
}
